package com.jy.wms.web;

import com.joyi.gate.comm.SessionInfo;
import com.joyi.gate.safety.vo.UserInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * Created by syh on 2018/8/3.
 */
@Controller
@RequestMapping("/ownerRouter")
public class WmsOwnerRouter {
    /**
     * 跳转查询列表页
     * @param model
     * @param session
     * @return
     */
    @RequestMapping(value = "getOwnerList")
    public String getOwnerList(Model model, HttpSession session){
        return  "wmsOwner/wmsOwnerList";
    }
    /**
     * 跳转货主详情页面
     * @param id
     * @param model
     * @return
     */
    @RequestMapping(value = "/getFindHz")
    public String getFindHz(String id, Model model) {
        model.addAttribute("id",id);
        return "wmsOwner/wmsOwnerXiangxi";
    }
    /**
     * 跳转新增生成页面
     * @return
     */
    @RequestMapping(value = "toAddowner")
    public String toAddowner(){
        return  "wmsOwner/addWmsOwner";
    }
}